package cn.wangjun.org.service;

import cn.wangjun.basic.util.PageList;
import cn.wangjun.org.domain.Department;
import cn.wangjun.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    void add(Department d);

    void upadte(Department d);

    void del(Long id );

    Department getById(Long id );

    List<Department> getAll();

    /*
     分页查询
     */
    PageList<Department> queryData(DepartmentQuery query);

    void patchDelete(List<Long> ids);

    List<Department> getTree();
}
